//
//  AudioSingleton.h
//  TestAudio
//
//  Created by 悠哉小哥哥 on 2018/7/3.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <AVFoundation/AVFoundation.h>


// block 传递信息
typedef void(^PlayerInfoBlock)(CGFloat value, CGFloat totalTime, NSString *timeStr, NSString *totalStr);

@interface AudioSingleton : NSObject


+ (instancetype)shareAudioPlayer;

- (void)playWithName:(NSString *)name;
- (void)playWithValue:(CGFloat) value;
- (void)pause;


@property (nonatomic, strong) PlayerInfoBlock playerInfoBlock;

@end
